package cn.lili.modules.goods.fallback;

import cn.lili.common.exception.ServiceException;
import cn.lili.modules.goods.client.GoodsSkuClient;
import cn.lili.modules.goods.entity.dos.Goods;
import cn.lili.modules.goods.entity.dos.GoodsSku;
import cn.lili.modules.goods.entity.dto.GoodsSearchParams;
import cn.lili.modules.goods.entity.dto.GoodsSkuDTO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author: ftyy
 * @date: 2022-01-13 15:32
 * @description: goodsSku Fallback
 */
public class GoodsSkuFallback implements GoodsSkuClient {

    @Override
    public GoodsSku getGoodsSkuByIdFromCache(String id) {
        throw new ServiceException();
    }

    /**
     * 批量从redis中获取商品SKU信息
     *
     * @param ids SkuId集合
     * @return 商品SKU信息集合
     */
    @Override
    public List<GoodsSku> getGoodsSkuByIdFromCache(List<String> ids) {
        throw new ServiceException();
    }

    @Override
    public Integer getStock(String skuId) {
        throw new ServiceException();
    }

    @Override
    public void updateGoodsSkuCommentNum(String skuId) {
        throw new ServiceException();
    }

    @Override
    public void updateBatchById(List<GoodsSku> goodsSkus) {
        throw new ServiceException();
    }

    @Override
    public IPage<GoodsSku> getGoodsSkuByPage(GoodsSearchParams searchParams) {
        throw new ServiceException();
    }

    @Override
    public Long getGoodsSkuCount(GoodsSearchParams searchParams) {
        throw new ServiceException();
    }

    @Override
    public Page<GoodsSkuDTO> getGoodsSkuDTOByPage(GoodsSearchParams searchParams) {
        throw new ServiceException();
    }

    @Override
    public List<GoodsSku> getGoodsSkuByGoodsIdList(List<String> goodsIdList) {
        throw new ServiceException();
    }

    @Override
    public GoodsSku getGoodsSkuById(String skuId) {
        throw new ServiceException();
    }

    @Override
    public void updateGoodsSkuCache(List<String> goodsIds) {
        throw new ServiceException();
    }

    @Override
    public List<GoodsSku> getGoodsSkuByStoreIds(List<String> storeIds) {
        throw new ServiceException();
    }
}
